home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / gcc / ixemlsrc.lha / ixemul / stdlib / Makefile.in < prev    next >
Makefile  |  1996-03-13  |  2KB  |  91 lines

  1. #### Start of system configuration section. ####
  2.  
  3. srcdir =    @srcdir@
  4.  
  5. ifeq ($(srcdir),.)
  6. srcdir = ../..
  7. endif
  8.  
  9. VPATH :=    $(srcdir)
  10.  
  11. # Common prefix for machine-independent installed files.
  12. prefix =    @prefix@
  13.  
  14. # Common prefix for machine-dependent installed files.
  15. exec_prefix =    @exec_prefix@
  16.  
  17. bindir =    $(exec_prefix)/bin
  18. libdir =    $(exec_prefix)/Sys/libs
  19.  
  20. INSTALL =    @INSTALL@
  21. INSTALL_DATA =    @INSTALL_DATA@
  22.  
  23. CC =        @CC@
  24.  
  25. CFLAGS =    @CFLAGS@
  26. LDFLAGS =    @LDFLAGS@
  27.  
  28. RANLIB =    @RANLIB@
  29. AR =        ar
  30.  
  31. #### End system configuration section ####
  32.  
  33. ifdef CATENATE
  34. DEBUG_FLAG =    -g
  35. else
  36. DEBUG_FLAG =    
  37. endif
  38.  
  39. # I *love* GNU make!
  40. define catenate
  41. /bin/echo -n creating $@...
  42. /bin/echo "$(^:%=#include \"%\"\n)" >$@
  43. /bin/echo done
  44. endef
  45.  
  46. FLAVOR_CFLAGS =    -m$(CPU) -m$(FPU)
  47. ALL_CFLAGS =    $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) $(DEBUG_FLAG) $(INCS)
  48.  
  49. INCS =        -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
  50. LIB =        libstdlib.a
  51.  
  52. .c.o:
  53.         $(CC) $(ALL_CFLAGS) -c $< -o $@
  54.  
  55. SRC =        abort.c abs.c atexit.c atof.c atoi.c atol.c \
  56.         calloc.c div.c exec.c getenv.c \
  57.         labs.c ldiv.c multibyte.c putenv.c radixsort.c \
  58.         rand.c setenv.c ssystem.c strtol.c strtoul.c system.c
  59.  
  60. OBJ =        $(SRC:.c=.o)
  61.  
  62. A4_SRC =    bsearch.c heapsort.c qsort.c execve.c
  63.  
  64. A4_OBJ =    $(A4_SRC:.c=.o)
  65.  
  66. ifdef CATENATE
  67. ALL =        all.o a4.o
  68. else
  69. ALL =        $(OBJ) $(A4_OBJ)
  70. endif
  71.  
  72. $(LIB):        $(ALL)
  73.         rm -f $@
  74.         $(AR) rv $@ $(ALL)
  75.         $(RANLIB) $@
  76.  
  77. all.c:        $(SRC)
  78.         @$(catenate)
  79.  
  80. a4.c:        $(A4_SRC)
  81.         @$(catenate)
  82.  
  83. $(A4_OBJ) a4.o:    %.o: %.c
  84.         $(CC) $(ALL_CFLAGS) -ffixed-a4 -c $< -o $@
  85.  
  86. clean:
  87.         rm -rf 680?0
  88.  
  89. clobber:    clean
  90.         rm -f Makefile
  91.